package com.mlnx.work.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("逾期计划提交表单参数类")
public class OverdueForm {

    @ApiModelProperty("层级或任务ID")
    @NotNull(message = "ID不能为空")
    private Integer id;

    @ApiModelProperty("逾期说明")
    @NotEmpty(message = "逾期说明不能为空")
    private List<OverdueExplainForm> overdueDescription;

    @ApiModelProperty("计划逾期完成时间")
    @NotNull(message = "计划逾期完成时间不能为空")
    private Long overdueTime;
}
